package com.xian.yoga.entity;

import java.io.Serializable;

/**
 * studio
 * @author 
 */
public class Studio implements Serializable {
    private Integer studioId;

    private Integer ownerId;

    private String studioName;

    private String studioProvice;

    private String studioCity;

    private String studioArea;

    private String studioLongitude;

    private String studioLatitude;

    private String studioAddress;

    private String studioImg;

    private String studioStatus;

    private String studioTel;

    private Integer studioPositive;

    private static final long serialVersionUID = 1L;

    public Integer getStudioId() {
        return studioId;
    }

    public void setStudioId(Integer studioId) {
        this.studioId = studioId;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public String getStudioName() {
        return studioName;
    }

    public void setStudioName(String studioName) {
        this.studioName = studioName;
    }

    public String getStudioProvice() {
        return studioProvice;
    }

    public void setStudioProvice(String studioProvice) {
        this.studioProvice = studioProvice;
    }

    public String getStudioCity() {
        return studioCity;
    }

    public void setStudioCity(String studioCity) {
        this.studioCity = studioCity;
    }

    public String getStudioArea() {
        return studioArea;
    }

    public void setStudioArea(String studioArea) {
        this.studioArea = studioArea;
    }

    public String getStudioLongitude() {
        return studioLongitude;
    }

    public void setStudioLongitude(String studioLongitude) {
        this.studioLongitude = studioLongitude;
    }

    public String getStudioLatitude() {
        return studioLatitude;
    }

    public void setStudioLatitude(String studioLatitude) {
        this.studioLatitude = studioLatitude;
    }

    public String getStudioAddress() {
        return studioAddress;
    }

    public void setStudioAddress(String studioAddress) {
        this.studioAddress = studioAddress;
    }

    public String getStudioImg() {
        return studioImg;
    }

    public void setStudioImg(String studioImg) {
        this.studioImg = studioImg;
    }

    public String getStudioStatus() {
        return studioStatus;
    }

    public void setStudioStatus(String studioStatus) {
        this.studioStatus = studioStatus;
    }

    public String getStudioTel() {
        return studioTel;
    }

    public void setStudioTel(String studioTel) {
        this.studioTel = studioTel;
    }

    public Integer getStudioPositive() {
        return studioPositive;
    }

    public void setStudioPositive(Integer studioPositive) {
        this.studioPositive = studioPositive;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Studio other = (Studio) that;
        return (this.getStudioId() == null ? other.getStudioId() == null : this.getStudioId().equals(other.getStudioId()))
            && (this.getOwnerId() == null ? other.getOwnerId() == null : this.getOwnerId().equals(other.getOwnerId()))
            && (this.getStudioName() == null ? other.getStudioName() == null : this.getStudioName().equals(other.getStudioName()))
            && (this.getStudioProvice() == null ? other.getStudioProvice() == null : this.getStudioProvice().equals(other.getStudioProvice()))
            && (this.getStudioCity() == null ? other.getStudioCity() == null : this.getStudioCity().equals(other.getStudioCity()))
            && (this.getStudioArea() == null ? other.getStudioArea() == null : this.getStudioArea().equals(other.getStudioArea()))
            && (this.getStudioLongitude() == null ? other.getStudioLongitude() == null : this.getStudioLongitude().equals(other.getStudioLongitude()))
            && (this.getStudioLatitude() == null ? other.getStudioLatitude() == null : this.getStudioLatitude().equals(other.getStudioLatitude()))
            && (this.getStudioAddress() == null ? other.getStudioAddress() == null : this.getStudioAddress().equals(other.getStudioAddress()))
            && (this.getStudioImg() == null ? other.getStudioImg() == null : this.getStudioImg().equals(other.getStudioImg()))
            && (this.getStudioStatus() == null ? other.getStudioStatus() == null : this.getStudioStatus().equals(other.getStudioStatus()))
            && (this.getStudioTel() == null ? other.getStudioTel() == null : this.getStudioTel().equals(other.getStudioTel()))
            && (this.getStudioPositive() == null ? other.getStudioPositive() == null : this.getStudioPositive().equals(other.getStudioPositive()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStudioId() == null) ? 0 : getStudioId().hashCode());
        result = prime * result + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
        result = prime * result + ((getStudioName() == null) ? 0 : getStudioName().hashCode());
        result = prime * result + ((getStudioProvice() == null) ? 0 : getStudioProvice().hashCode());
        result = prime * result + ((getStudioCity() == null) ? 0 : getStudioCity().hashCode());
        result = prime * result + ((getStudioArea() == null) ? 0 : getStudioArea().hashCode());
        result = prime * result + ((getStudioLongitude() == null) ? 0 : getStudioLongitude().hashCode());
        result = prime * result + ((getStudioLatitude() == null) ? 0 : getStudioLatitude().hashCode());
        result = prime * result + ((getStudioAddress() == null) ? 0 : getStudioAddress().hashCode());
        result = prime * result + ((getStudioImg() == null) ? 0 : getStudioImg().hashCode());
        result = prime * result + ((getStudioStatus() == null) ? 0 : getStudioStatus().hashCode());
        result = prime * result + ((getStudioTel() == null) ? 0 : getStudioTel().hashCode());
        result = prime * result + ((getStudioPositive() == null) ? 0 : getStudioPositive().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", studioId=").append(studioId);
        sb.append(", ownerId=").append(ownerId);
        sb.append(", studioName=").append(studioName);
        sb.append(", studioProvice=").append(studioProvice);
        sb.append(", studioCity=").append(studioCity);
        sb.append(", studioArea=").append(studioArea);
        sb.append(", studioLongitude=").append(studioLongitude);
        sb.append(", studioLatitude=").append(studioLatitude);
        sb.append(", studioAddress=").append(studioAddress);
        sb.append(", studioImg=").append(studioImg);
        sb.append(", studioStatus=").append(studioStatus);
        sb.append(", studioTel=").append(studioTel);
        sb.append(", studioPositive=").append(studioPositive);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}